package com.xxx;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/20  10:55
 * @Copyright
 */
public class math {
    public static void main(String[] args) {
        System.out.println(Math.max(5,9));//比大小
        System.out.println(Math.pow(9,3));//求平方
        System.out.println(Math.round(3.95));//四舍五入
        System.out.println(Math.ceil(3.1));//向上取整
        System.out.println(Math.floor(3.5));//向下取整

    }
}
